package com.hand.demo.domain.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.choerodon.mybatis.annotation.ModifyAudit;
import io.choerodon.mybatis.annotation.VersionAudit;
import io.choerodon.mybatis.domain.AuditDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 培训经历表(HhrTaTraining)实体类
 *
 * @author
 * @since 2025-06-16 12:16:50
 */

@ApiModel("培训经历表")
@VersionAudit
@ModifyAudit
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@Table(name = "hhr_ta_training")
public class HhrTaTraining extends AuditDomain {
    private static final long serialVersionUID = -85099542704861252L;

    public static final String FIELD_ID = "id";
    public static final String FIELD_END_DATE = "endDate";
    public static final String FIELD_RESUME_ID = "resumeId";
    public static final String FIELD_START_DATE = "startDate";
    public static final String FIELD_TENANT_ID = "tenantId";
    public static final String FIELD_TRAIN_CERT = "trainCert";
    public static final String FIELD_TRAIN_CONT = "trainCont";
    public static final String FIELD_TRAIN_LOC = "trainLoc";
    public static final String FIELD_TRAIN_NAME = "trainName";
    public static final String FIELD_TRAIN_ORG = "trainOrg";

    @ApiModelProperty("自增主键")
    @Id
    @GeneratedValue
    private Long id;

    @ApiModelProperty(value = "结束时间(原始格式)")
    private String endDate;

    @ApiModelProperty(value = "关联简历ID", required = true)
    @NotNull
    private Long resumeId;

    @ApiModelProperty(value = "开始时间(原始格式)")
    private String startDate;

    @ApiModelProperty(value = "租户ID", required = true)
    @NotNull
    private Long tenantId;

    @ApiModelProperty(value = "获得证书的名称")
    private String trainCert;

    @ApiModelProperty(value = "培训课程内容和学习收获", required = true)
    @NotNull
    private Object trainCont;

    @ApiModelProperty(value = "培训具体地点")
    private String trainLoc;

    @ApiModelProperty(value = "培训课程全程")
    @NotBlank
    private String trainName;

    @ApiModelProperty(value = "培训机构名称")
    @NotBlank
    private String trainOrg;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Long getResumeId() {
        return resumeId;
    }

    public void setResumeId(Long resumeId) {
        this.resumeId = resumeId;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public String getTrainCert() {
        return trainCert;
    }

    public void setTrainCert(String trainCert) {
        this.trainCert = trainCert;
    }

    public Object getTrainCont() {
        return trainCont;
    }

    public void setTrainCont(Object trainCont) {
        this.trainCont = trainCont;
    }

    public String getTrainLoc() {
        return trainLoc;
    }

    public void setTrainLoc(String trainLoc) {
        this.trainLoc = trainLoc;
    }

    public String getTrainName() {
        return trainName;
    }

    public void setTrainName(String trainName) {
        this.trainName = trainName;
    }

    public String getTrainOrg() {
        return trainOrg;
    }

    public void setTrainOrg(String trainOrg) {
        this.trainOrg = trainOrg;
    }

}

